package com.huijiet.service;

import com.huijiet.base.common.CommonResult;
import com.huijiet.param.NewsParam;


public interface INewsService {

    /**后台分页查询新闻列表*/
    CommonResult list(NewsParam.ListParam param);

    /**新增新闻*/
    CommonResult add(NewsParam.AddParam param);

    /**修改新闻*/
    CommonResult modify(NewsParam.ModifyParam param);

    /**获取新闻详情*/
    CommonResult get(NewsParam.GetParam param);

    /**发布新闻*/
    CommonResult publish(NewsParam.PublishParam param);

    /**取消发布*/
    CommonResult cancel(NewsParam.CancelParam param);

    /**删除新闻*/
    CommonResult delete(NewsParam.DeleteParam param);

    /**新闻详情*/
    void detail(Integer newsId);

    /**前端获取新闻列表*/
    CommonResult pageList(NewsParam.PageListParam param);
}
